package com.ruoyi.emergency.mapper;

import java.util.List;
import com.ruoyi.emergency.domain.FirefighterEmergency;

/**
 * 重大应急救援任务Mapper接口
 *
 * @author ruoyi
 * @date 2024-10-11
 */
public interface FirefighterEmergencyMapper
{
    /**
     * 查询重大应急救援任务
     *
     * @param id 重大应急救援任务主键
     * @return 重大应急救援任务
     */
    public FirefighterEmergency selectFirefighterEmergencyById(Long id);

    /**
     * 查询重大应急救援任务列表
     *
     * @param firefighterEmergency 重大应急救援任务
     * @return 重大应急救援任务集合
     */
    public List<FirefighterEmergency> selectFirefighterEmergencyList(FirefighterEmergency firefighterEmergency);

    /**
     * 新增重大应急救援任务
     *
     * @param firefighterEmergency 重大应急救援任务
     * @return 结果
     */
    public int insertFirefighterEmergency(FirefighterEmergency firefighterEmergency);

    /**
     * 修改重大应急救援任务
     *
     * @param firefighterEmergency 重大应急救援任务
     * @return 结果
     */
    public int updateFirefighterEmergency(FirefighterEmergency firefighterEmergency);

    /**
     * 删除重大应急救援任务
     *
     * @param id 重大应急救援任务主键
     * @return 结果
     */
    public int deleteFirefighterEmergencyById(Long id);

    /**
     * 批量删除重大应急救援任务
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFirefighterEmergencyByIds(Long[] ids);
    /**
     * 救援任务名称去查询对象
     *
     * @param emergency 名称
     * @return 结果
     */
    List<FirefighterEmergency>  selectFirefighterEmergencyByName(String emergency);

    void deleteFirefighterEmergencyByIduser(Long userId);
}
